package com.cssy.xxkj.logic.dao;

import java.util.List;
import java.util.Map;

import com.cssy.xxkj.logic.entity.LogicWarehouseOtheroutDO;
import com.cssy.xxkj.logic.entity.LogicWarehouseOtheroutItemDO;

/**
 * 数据访问对象接口
 * @since 2014-09-17
 */
public interface LogicWarehouseOtheroutItemDAO extends LogicBizDAO<LogicWarehouseOtheroutDO> {

    /**
     * 插入数据
     * @param logicWarehouseOtheroutItemDO
     * @return 插入数据的主键
     */
    public String insertLogicWarehouseOtheroutItemDO(LogicWarehouseOtheroutItemDO logicWarehouseOtheroutItemDO);

    /**
     * 统计记录数
     * @param logicWarehouseOtheroutItemDO
     * @return 查出的记录数
     */
    public Integer countLogicWarehouseOtheroutItemDOByExample(LogicWarehouseOtheroutItemDO logicWarehouseOtheroutItemDO);

    /**
     * 更新记录
     * @param logicWarehouseOtheroutItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicWarehouseOtheroutItemDO(LogicWarehouseOtheroutItemDO logicWarehouseOtheroutItemDO);

    /**
     * 获取对象列表
     * @param logicWarehouseOtheroutItemDO
     * @return 对象列表
     */
    public List<LogicWarehouseOtheroutItemDO> findListByExample(LogicWarehouseOtheroutItemDO logicWarehouseOtheroutItemDO);
    
    public List<LogicWarehouseOtheroutItemDO> findListByMap(Map<String, Object> paramMap);

    /**
     * 根据主键获取logicWarehouseOtheroutItemDO
     * @param id
     * @return logicWarehouseOtheroutItemDO
     */
    public LogicWarehouseOtheroutItemDO findLogicWarehouseOtheroutItemDOByPrimaryKey(String id);

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicWarehouseOtheroutItemDOByPrimaryKey(String id);
    
    /**
     * 根据主表ID查询Item
     * @param pid
     * @return
     */
    public List<LogicWarehouseOtheroutItemDO> findByPid(String pid);
    
    /**
     * 根据主表ID删除Item记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteByPid(String id);

}